package com.yingxin.yxerp.module.common;

/**
 * 类型
 */
public enum PlanNameDefaultEnum {

    SX_JH("SX_JH", "酸洗计划"),
    ZY_JH("ZY_JH", "轧硬计划"),
    DX_JH("DX_JH", "镀锌计划"),
    CT_JH("CT_JH", "彩涂计划"),
    XM_JH("XM_JH", "修磨计划"),
    ;

    private String type;

    private String typeName;

    PlanNameDefaultEnum(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }


    public static PlanNameDefaultEnum getEnum(String type) {
        for (PlanNameDefaultEnum t : PlanNameDefaultEnum.values()) {
            if (t.getType().equals(type)) {
                return t;
            }
        }
        return null;
    }

}